﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HappyEvaluateUpdForm.aspx.cs" Inherits="App_Input_HappyEvaluateUpdForm"
    Title="活动评价登记" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6" >
                        <script language="javascript">
                                        (new TitleBar('SearchBar', '活动信息')).showBar();
                            </script>
                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background:ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px;">&nbsp;</td>
                        <td style="HEIGHT: 24px; width: 137px;" align="left" nowrap class="list_data_bg_left">活动编号：</td>
                        <td style="HEIGHT: 24px; width: 201px;" align="left" nowrap>&nbsp;<asp:Label ID="labActinId" runat="server" Text="Label"></asp:Label></td>
                        <td align="left" style="HEIGHT: 24px; width: 174px;" nowrap>&nbsp;负责管家：</td>
                        <td align="left" style="HEIGHT: 24px" nowrap>&nbsp;<asp:Label ID="labRespPesonName" runat="server" Text="Label"></asp:Label></td>
                        <td style="HEIGHT: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 23px">&nbsp;</td>
                        <td class="list_data_bg_left" style="width: 137px; height: 23px;">活动名称：</td>
                        <td style="width: 201px; height: 23px;">&nbsp;<asp:Label ID="labActionName" runat="server" Text="Label"></asp:Label></td>
                        <td style="width: 174px; height: 23px;">&nbsp;活动分类：</td>
                        <td style="width: 414px; height: 23px;">&nbsp;<asp:Label ID="labTypeName" runat="server" Text="Label"></asp:Label></td>
                        <td style="HEIGHT: 23px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 137px">活动日期：</td>
                        <td style="width: 201px">&nbsp;<asp:Label ID="labActionDate" runat="server" Text="Label"></asp:Label></td>
                        <td style="width: 174px">&nbsp;活动地点：</td>
                        <td style="width: 414px">&nbsp;<asp:Label ID="labActionAddress" runat="server" Text="Label"></asp:Label></td>
                        <td></td>
                    </tr>
                   
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 137px"></td>
                        <td colspan="3"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center"></td>
                    </tr>
                </table>
            </td>
        </tr>  
        <tr>
        <td> &nbsp; 选择：&nbsp;
            <asp:RadioButtonList ID="rabListPersonType" runat="server" RepeatDirection="Horizontal"
                RepeatLayout="Flow" AutoPostBack="True" OnSelectedIndexChanged="rabListPersonType_SelectedIndexChanged">
                <asp:ListItem Selected="True" Value="0">会员</asp:ListItem>
                <asp:ListItem Value="1">职员</asp:ListItem>
            </asp:RadioButtonList>
            <asp:MultiView ID="MultiView1" runat="server">
                <asp:View ID="View1" runat="server">
                    <!-- mv 会员 -->
    <%--<table width="100%">
        <tr>
            <td>                
                <table class="table_border_line" style="background:ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px;">&nbsp;</td>
                        <td style="" align="left" nowrap class="list_data_bg_left"></td>
                        <td style="" align="left" nowrap>&nbsp;</td>
                        <td align="left" style="" nowrap>&nbsp;</td>
                        <td align="left" style="" nowrap>&nbsp;</td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px">&nbsp;</td>
                        <td class="list_data_bg_left" style="width: 126px">会员编号：</td>
                        <td colspan="3">&nbsp;<asp:TextBox ID="TextBox3" runat="server" Width="87px"></asp:TextBox>
                            <asp:Button ID="Button2" runat="server"
                                Text="会员检索" /></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"></td>
                        <td colspan="3"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center"></td>
                    </tr>
                </table>
            </td>
        </tr>        
    </table> --%>
    <div id="Div2">
        <table width="100%">
            <tr>
                <td align="left">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '评价列表')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td >
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="GridView_table" DataKeyNames="MemberNo" BorderStyle="Solid" OnRowDataBound="GridView1_RowDataBound"
                         OnSelectedIndexChanged="GridView1_SelectedIndexChanged"   OnPageIndexChanging="GridView1_PageIndexChanging"
                        BorderWidth="3px" EnableViewState="true" Width="100%">
                        <Columns>
                            <asp:BoundField HeaderText="会员编号" DataField="MemberNo" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="会员姓名" DataField="NameC">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="40%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>                            
                            <asp:BoundField HeaderText="评估日期" DataField="AppraiseDate">
                                <HeaderStyle Width="40%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField> 
                            <asp:BoundField HeaderText="评估状态">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField> 
                            <asp:CommandField ButtonType="Image" HeaderText="评估" SelectImageUrl="~/images/edit.jpg"
                                SelectText="" ShowSelectButton="True">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" CssClass="GridView_item_center" />
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                            </asp:CommandField>                           
                           
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <table width="100%" >
        <tr>
            <td colspan="2">
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6" style="height: 15px" >
                        <script language="javascript">
                                        (new TitleBar('SearchBar', '活动评价')).showBar();
                            </script>
                        </td>
                    </tr>
                </table>
                
            </td>
        </tr>
         <tr>
            <td style="height: 44px; width: 10%">
                <font color="#FF7300">*</font>&nbsp; 会员姓名：
           </td>
            <td style="height: 44px">
            <asp:Label ID="labMemberName" runat="server" ></asp:Label>
             </td>
        </tr>
        <tr>
            <td colspan="2">
             <asp:Table CssClass="GridView_table" ID="TblItem" runat="server" EnableViewState="true" >
                <asp:TableRow>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue"  Width="10%">项目</asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="40%" nowrap>评分</asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue"  Width="25%">原因分析</asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="25%">改进意见</asp:TableHeaderCell>
                </asp:TableRow>
                </asp:Table>
             </td>
        </tr>
       <tr>
           <td >
           备注
           </td>
            <td align="left">
                <asp:TextBox ID="txtMemberMemo" runat="server"  Height="112px" Width="811px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" style="HEIGHT: 22px" colspan="2">&nbsp;
                &nbsp;&nbsp;<asp:Button ID="memberSave" runat="server" Text="  登 记  " Height="22px" Width="89px"
                    CssClass="button"  OnClick="memberSave_Click" OnClientClick="return confirm('是否登入数据？')"/>&nbsp;
                <asp:Button ID="back1" runat="server" Text="  返 回  " Height="22px" Width="89px"
                    CssClass="button" OnClick="back_Click"/></td>
        </tr>
    </table>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <!-- mv 职员 -->
    <%-- <table width="100%">
        <tr>
            <td>                
                <table class="table_border_line" style="background:ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px;">&nbsp;</td>
                        <td style="" align="left" nowrap class="list_data_bg_left"></td>
                        <td style="" align="left" nowrap>&nbsp;</td>
                        <td align="left" style="" nowrap>&nbsp;</td>
                        <td align="left" style="" nowrap>&nbsp;</td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px">&nbsp;</td>
                        <td class="list_data_bg_left" style="width: 126px">职员编号：</td>
                        <td colspan="3">&nbsp;<asp:TextBox ID="TextBox2" runat="server" Width="87px"></asp:TextBox>
                            </td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"></td>
                        <td colspan="3"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center"></td>
                    </tr>
                </table>
            </td>
        </tr>        
    </table>--%>
    <div id="Div1">
        <table width="100%">
            <tr>
                <td align="left" style="height: 15px">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '评价列表')).showBar();
                    </script>

                </td>
            </tr>
            
            <tr>
                <td>
                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                     OnRowDataBound="GridView2_RowDataBound" OnSelectedIndexChanged="GridView2_SelectedIndexChanged" OnPageIndexChanging="GridView2_PageIndexChanging"
                        CssClass="GridView_table" DataKeyNames="EmployeeId" BorderStyle="Solid"
                        BorderWidth="3px" EnableViewState="true" Width="100%">
                        <Columns>
                            <asp:BoundField HeaderText="职员编号" DataField="EmployeeId" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="职员姓名" DataField="NameC">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="40%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>                            
                             <asp:BoundField HeaderText="评估日期" DataField="AppraiseDate">
                                <HeaderStyle Width="40%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField> 
                            <asp:BoundField HeaderText="评估状态">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                            
                            <asp:CommandField ButtonType="Image" HeaderText="评估" SelectImageUrl="~/images/edit.jpg"
                                SelectText="" ShowSelectButton="True">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" CssClass="GridView_item_center" />
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                            </asp:CommandField>         
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <table width="100%">
        <tr>
            <td  colspan="2">
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6" >
                        <script language="javascript">
                                        (new TitleBar('SearchBar', '活动意愿登记')).showBar();
                            </script>
                        </td>
                    </tr>
                </table>
                 
            </td>
        </tr>
        <tr>
            <td style="height: 44px; width: 10%">
                <font color="#FF7300">*</font>&nbsp; 员工姓名：
           </td>
            <td style="height: 44px">
            <asp:TextBox ID="txtEmployeeNo" runat="server" MaxLength="4" Width="85px"></asp:TextBox>
            <asp:TextBox ID="txtEmployeeName" runat="server"
             Width="89px"  BackColor="#E0E0E0" BorderColor="#E0E0E0" ForeColor="Black"   contentEditable ="false" ></asp:TextBox>
             <a  href="#" onclick="javascript:popupEmployeeSearch('<%=txtEmployeeNo.ClientID%>', '<%=txtEmployeeName.ClientID %>' );">
                 <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
            </a>
                            
           
             </td>
        </tr>
        <tr>
            <td  colspan="2">
           <asp:Table CssClass="GridView_table" ID="TblItem2" runat="server" EnableViewState="true" >
                <asp:TableRow>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue"  Width="10%">项目</asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="40%">评分</asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue"  Width="25%">原因分析</asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="25%">改进意见</asp:TableHeaderCell>
                </asp:TableRow>
                </asp:Table>
             </td>
        </tr>
        <tr>
           <td >
           备注
           </td>
            <td align="left">
                <asp:TextBox ID="txtEmployeeMemo" runat="server"  Height="99px" Width="819px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" style="" colspan="2">&nbsp;
                &nbsp;&nbsp;<asp:Button ID="employeeSave" runat="server" Text="  登 记  " Height="22px" Width="89px"
                    CssClass="button" OnClick="employeeSave_Click" OnClientClick="return confirm('是否登入数据？')"/>&nbsp;
                <asp:Button ID="back2" runat="server" Text="  返 回  " Height="22px" Width="89px"
                    CssClass="button" OnClick="back_Click" /></td>
        </tr>
    </table>
                </asp:View>
            </asp:MultiView></td>
        </tr>      
    </table>
    

</asp:Content>
